import '../ref.dart';

dynamic globalRefUpdateInstance;

class UpdateOptions {
  final List<Ref>? refs;
  // 延迟多少秒执行
  final Duration? delay;
  UpdateOptions({this.refs, this.delay});
}

class Update {
  List<Ref> refs = [];
  Update();
  collect(Ref ref) {
    if (!refs.contains(ref)) {
      refs.add(ref);
    }
  }
}
